package com.qige.homework;

import java.util.Scanner;

public class homework2 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入一串数字:");
        String str = input.next();
        System.out.print("这个QQ号码是否正确:");
        if (str.startsWith("0")){
            System.out.print("false");
            return;
        }
        if (str.length() >= 5 && str.length() <= 12){
            System.out.print("true");
        }else {
            System.out.println("false");
        }
    }
}